﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebUI.Controls
{
    public partial class EditNetworkCtrl : BaseEditControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);
        }

        public string NetworkName
        {
            get { return txtName.Text; }
            set { txtName.Text = value; }
        }

        public string DealerCode
        {
            get { return txtDealerCode.Text; }
            set { txtDealerCode.Text = value; }
        }

        public string PostalAddress
        {
            get { return txtAddress.Text; }
            set { txtAddress.Text = value; }
        }

        public string DealerManagerName
        {
            get { return txtDealerName.Text; }
            set { txtDealerName.Text = value; }
        }

        public string DealerManagerPhone
        {
            get { return txtDealerPhone.Text; }
            set { txtDealerPhone.Text = value; }
        }

        public string DealerManagerEmail
        {
            get { return txtDealerEmail.Text; }
            set { txtDealerEmail.Text = value; }
        }

        public string CommissionEnquiryName
        {
            get { return txtCommissionName.Text; }
            set { txtCommissionName.Text = value; }
        }

        public string CommissionEnquiryPhone
        {
            get { return txtCommissionPhone.Text; }
            set { txtCommissionPhone.Text = value; }
        }

        public string CommissionEnquiryEmail
        {
            get { return txtCommissionEmail.Text; }
            set { txtCommissionEmail.Text = value; }
        }

        public string OtherName
        {
            get { return txtOtherName.Text; }
            set { txtOtherName.Text = value; }
        }

        public string OtherPhone
        {
            get { return txtOtherPhone.Text; }
            set { txtOtherPhone.Text = value; }
        }

        public string OtherEmail
        {
            get { return txtOtherEmail.Text; }
            set { txtOtherEmail.Text = value; }
        }

        public bool Enable
        {
            get
            {
                return Panel1.Enabled;
            }
            set
            {
                Panel1.Enabled = value;
                Panel2.Enabled = value;
                Panel3.Enabled = value;
                GeneralPanel.Enabled = value;
            }
        }
    }
}